﻿@model OneWeb.ViewModels.AuthorDetailViewModel
@using One.Models
@{
    ViewBag.Title = Model.Author.Name;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Model.Author.Name</h2>


<h3>已发布的文章</h3>
<ul class="list-unstyled">
@foreach(Article article in Model.Author.Articles)
{
    <li><a href="@Url.Action("details", "article",new { Id = article.Id })" target="_blank" title="@article.Title">@article.Title</a></li>
}
</ul>
